package com.techzhi.addres_score.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.techzhi.addres_score.model.AreaCode;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;

/**
 * 省市区数据操作
 */
@Mapper
public interface AreaCodeMapper extends BaseMapper<AreaCode> {

    @Select("SELECT * FROM area_code_list WHERE pcode = #{pcode}")
    List<AreaCode> selectAreaByPCode(@Param("pcode") Long pcode);

}